<?php
namespace app\common\validate\Subject;

use think\Validate;

// 课程的验证器
class Chapter extends Validate
{
    protected $rule =   [
        'title'  => ['require'],
        
        'subid' => ['require']
    ];

    protected $message  =   [
        'title.require' => '课程章节名称必须填写',
       
        'cateid.require'  => '章节分类必须填写'  
    ];

    protected $scene = [

    ];
}
